#include <QCoreApplication>
#include <iostream>
using namespace std;

int main()
{
    int N, a;
    cout <<"Vvedite N: \n";
    cin >>N;
        a=N%3600;
             cout <<"a=" << a <<endl;

    return 0;
}
